//
//  QFreeCertificateCell.m
//  QoilPublic
//
//  Created by 杨凯 on 16/9/5.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "QFreeCertificateCell.h"


@interface QFreeCertificateCell()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;


@property (weak, nonatomic) IBOutlet UIButton *sButton;

@end
@implementation QFreeCertificateCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setSeparatorInset:UIEdgeInsetsZero];
    [self setLayoutMargins:UIEdgeInsetsZero];
    self.sButton.layer.cornerRadius = 3.0;
}

- (IBAction)cButtonAction:(id)sender {
    CLog(@"审请");
    
    if(_block){
        _block(_indexPath.row);
    }
}

- (void)setDics:(NSDictionary *)dics{

    _dics = dics;
    _titleLabel.text = _dics[@"certificatesName"];
    _moneyLabel.text = _dics[@"certificatesPrice"];
}


@end
